package com.xunqi.mall.mapper;

import com.xunqi.mall.pojo.User;
import org.apache.ibatis.annotations.Param;

/**
 * @author Jerry
 */
public interface UserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByUsername(@Param("username") String username);

    User selectByEamil(@Param("email") String email);
}